package com.lz.ovuola.service;

import java.util.Date;

/**
 * 硬件数据检测分析
 * 
 * @author fz
 *
 */
public interface PhysiologicalDataService {
	/**
	 * 上传硬件检测数据 所有计算只针对本次生理周期
	 * 
	 * @param detectionTime
	 * @param ch1rh
	 * @param ch1rl
	 * @param ch2rh
	 * @param ch2rl
	 * @param ch3r
	 * @param ch1vl
	 * @param ch2vl
	 * @param sick
	 * @param leedingGums
	 * @return
	 */
	String saveData(Date detectionTime, Float ch1rh, Float ch1rl, Float ch2rh,
			Float ch2rl, Float ch3r, Float ch1vl, Float ch2vl, Integer sick,
			Integer leedingGums, Integer userId) throws Exception;

	/**
	 * 获取历史检测记录
	 * 
	 * @param startTime
	 * @param endTime
	 * @return
	 * @throws Exception
	 */
	String get(Date startTime, Date endTime) throws Exception;
}
